﻿// -----------------------------------------------------------------------
// <copyright file="PriorityConverter.cs" company="Microsoft">
// TODO: Update copyright text.
// </copyright>
// -----------------------------------------------------------------------

using System.Windows.Data;

namespace Kinban
{
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;

    /// <summary>
    /// TODO: Update summary.
    /// </summary>
    public class PriorityConverter: IValueConverter     
    {
        public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            var priorityColor = "Blue";

            if (value != null)
            {
                switch (value.ToString())
                {
                    case "1":
                        priorityColor = "Orange";
                        break;
                    case "2":
                        priorityColor = "Green";
                        break;
                    default:
                        break;
                }
            }
            return priorityColor;
        }

        public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            throw new NotImplementedException();
        }
    }
}
